package abacab.serial;

import com.typesafe.config.Config;
import com.typesafe.config.ConfigException;

/**
 * Represents a factory to build a serializer
 */
public interface SerializerFactory {
	/**
	 * @param config
	 *          the configuration
	 * @return the serializer
	 * @throws ConfigException
	 *           if the configuration is invalid
	 */
	Serializer buildSerializer(Config config) throws ConfigException;
}